package com.zhongmeng.rxjava2test.base

import io.reactivex.Observable
import io.reactivex.disposables.Disposable

/**
 * author :rcw.
 * date :2017/10/20 15:34.
 */

interface BaseModle {
    fun <T> getObservable(observable: Observable<T>, which: Int): Disposable
    interface OnRequestListener<T> {
        fun onRequestSuccess(data: T, which: Int)
        fun onRequestFail(throwable: Throwable)
    }
}
